package com.times.exception;




/**
 * 与用户操作或实际业务逻辑相关的异常<br>
 * 由框架统一捕获并处理,将异常信息显示给用户
 * @author wyb
 * @version 2015-09
 */
public class BusinessException extends BaseException {

    private static final long serialVersionUID = -4942849136285353014L;

    /**
     * Creates a new instance of BusinessException.
     *
     */
    public BusinessException() {
        super();
    }

    /**
     * Creates a new instance of BusinessException.
     *
     * @param code
     * @param params: 消息内容带参数时需要传入
     */
    public BusinessException(Object code, Object... params) {
        super(code, params);
    }

    /**
	 * Creates a new instance of BusinessException
	 * 
	 * @param cause
	 * @param code
	 * @param params
	 */
	public BusinessException(Throwable cause, Object code, Object... params) {
		super(cause, code, params);
	}

	/**
     * Creates a new instance of BusinessException.
     *
     * @param message
     * @param cause
     * @param enableSuppression
     * @param writableStackTrace
     */
    public BusinessException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    /**
     * Creates a new instance of BusinessException.
     *
     * @param message
     * @param cause
     */
    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }

    /**
     * Creates a new instance of BusinessException.
     *
     * @param message
     */
    public BusinessException(String message) {
        super(message);
    }

    /**
     * Creates a new instance of BusinessException.
     *
     * @param cause
     */
    public BusinessException(Throwable cause) {
        super(cause);
    }

}
